/*******************************************************************************
*
* FModSound wraps class FMOD::Sound
*
*
******************************************************************************/
#pragma once
#include "noria.h"
#include "fmod-manager.h"

namespace noria{ namespace fmod
{
    class FModManager;
    class FModSound
    {
    public:
        FModSound(const FModManager& manager, cbinary_ref pcm);
        ~FModSound(void);
        
        // ------------------------------------------------------------------------------------
        // play the PCM/ADPCM music
        // ------------------------------------------------------------------------------------
        void play(bool async = true);

        // ------------------------------------------------------------------------------------
        // stop playing immediately
        // ------------------------------------------------------------------------------------
        void stop();
    };

}}